import java.util.Scanner;

public class demo02 {
    //质因数个数
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        long n=sc.nextLong();
        long count=0;
        if(n%2==0){
            count++;
        }
        for (long i = 3; i <= n; i++) {
            long tmp=i;
            int flag=1;
            for (long j = 2; j < tmp; j++) {
                if(tmp%j==0){
                    flag=0;
                    break;
                }
            }
            if(flag==1){
                if(n%tmp==0){
                    count++;
                }
            }
        }
        System.out.println(count);
    }
}
